import request from '@/utils/request'

// -------------------------------------------------------------------------------------库存预警接口文档----------------------------------------------------------------------------

// 获取库存预警列表---------------------------------------- 
export function list (params) {
  return request({
    url: '/function/storehouse/consumable/list',
    method: 'get',
    params
  })
}

// 生成采购单：物料库存列表---------------------------------------
export function resubmitList (params) {
  return request({
    url: '/function/storehouse/consumable/list',
    method: 'get',
    params
  })
}

//生成采购单：获取用户列表----------------------------------------
export function getuserlist (data) {
  return request({
    url: '/system/user/list',
    method: 'get',
    params: data
  })
}
//生成采购单: 提交接口----------------------------------------
export function add (data) {
  return request({
    url: '/function/purchase',
    method: 'post',
    data
  })
}